<?php
/**
 * Created by PhpStorm.
 * User: lee
 */

use Biz\service\trade\OrderRefund as sOrderRefund;
use Biz\tools\ImageRule;

class FillRightsProofAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {

        $refundOrderNo = $this->getRequest()->getPost('refund_order_no', '');

        $data = [];
        $data['proof_remark'] = $this->getRequest()->getPost('proof_remark', '');
        $data['images_content'] = $this->getRequest()->getPost('images_content', '');

        ImageRule::detectToJson($data['images_content']);


        $data = sOrderRefund::fillRightsProof($this->uid, $refundOrderNo, $data);

        $this->setSuccess($data);

    }
}